/*
 * Title:        CloudScheduler Toolkit
 * Description:  a Toolkit for Modeling and Simulation of Job Scheduling and Resource Provisioning in Cloud System
 * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html
 * Author:       Fuhui Wu
 *
 * Copyright (c) 2013-2014, The National University of Defense Technology, China
 */

package org.nudt.jCloud.infrastructure;

import java.util.ArrayList;
import java.util.List;

public abstract class Cluster{
	private List<Host> hostList;
	
	public void init(){
		hostList = new ArrayList<Host>();
	}
	
	public void reset(){
		for(int i=0; i<hostList.size(); ++i){
			hostList.get(i).reset();
		}
	}

	/**
	 * @return the hostList
	 */
	public List<Host> getHostList() {
		return hostList;
	}

	/**
	 * @param hostList the hostList to set
	 */
	public void setHostList(List<Host> hostList) {
		this.hostList = hostList;
	}

}
